home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: sekruege@nando.net (Steve Krueger)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: slink V6.56 problem
- Date: 16 Jan 1996 01:26:26 GMT
- Organization: News & Observer Public Access
- Message-ID: <4deus2$nm5@castle.nando.net>
- References: <4ddhlk$hms@oracle.rz.uni-ulm.de>
- NNTP-Posting-Host: 152.52.37.89
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-NewsReader: Interworks_GRn 3.0b16 October 19, 1995
-
- In article <4ddhlk$hms@oracle.rz.uni-ulm.de> gutmann@informatik.uni-ulm.de (Jens-Steffen Gutmann) writes:
- : Slink V6.56 seems to have problems when linking large object files.
- : I noticed it when trying to recompile the gnuplot source code.
- : Here is some code to produce a large source file:
- :
- < snip >
- :
- : Error 502: __writes symbol - Distance for Reloc16 > 32768
- :
- : --------------------------------------------------------------------------
- : Home:Prog/problems/linker > cat SCOPTIONS
- : CODE=FAR
- : ERRORREXX
- : NOGENPROTODATAITEMS
- : GLOBALSYMBOLTABLE=include:all.gst
- : --------------------------------------------------------------------------
- :
- : Same results without CODE=FAR.
- :
- : If I try to compile and link with SASC 6.55 everything works fine:
- :
- : --------------------------------------------------------------------------
- : Home:Prog/problems/linker > sc link linkprob.c
- : SAS/C Amiga Compiler 6.55
- : Copyright (c) 1988-1995 SAS Institute Inc.
- : ***Can't open GST file "include:all.gst" for read
- : Slink - Version 6.55
- : Copyright (c) 1988-1995 SAS Institute, Inc. All Rights Reserved.
- :
- :
- : SLINK Complete - Maximum code size = 85128 ($00014c88) bytes
- :
- : Final output file size = 101192 ($00018b48) bytes
- : --------------------------------------------------------------------------
- :
-
-
- You will notice the waring in the 6.55 compile saying that it can't
- find all.gst. That's the key.
-
- The file ALL.GST is compiled with CODE=NEAR (the default). Therefore,
- the function printf() gets NEAR associated with it. Adding CODE=FAR
- to the compile line will not change the call to anything in ALL.GST.
-
- Therefore, you either need to make a new GST for CODE=FAR, or don't
- use the GST for CODE=FAR.
-
-
-
- -- |__ o\
- ______ | W \O
- __________ /__ | H\_
- __ ___/_ //_/ | /-\
- _(__ )_ ,< | / \
- /____/ /_/|_| |
- sekruege@nando.net |
-